<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%
    if(session.getAttribute("currentUser")==null){
        response.sendRedirect(request.getContextPath()+"/login.jsp");
        return;
    }

    String mainPage=(String)request.getAttribute("mainPage");
    if(mainPage==null || mainPage.equals("")){
        mainPage="/common/default.jsp";
    }
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>设备管理系统主页</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/bootstrap3/css/bootstrap.min.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/bootstrap3/css/bootstrap-theme.min.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/equipment.css">
    <script type="text/javascript" src="${pageContext.request.contextPath}/bootstrap3/js/jquery-1.11.2.min.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/bootstrap3/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
    <div class="row">
        <div class="col-md-12">
            <jsp:include page="/common/head.jsp"/>
        </div>
    </div>
    <div class="row" style="padding-top: 45px">
        <div class="col-md-3">
            <jsp:include page="/common/menu.jsp"/>
        </div>
        <div class="col-md-9">
            <div>
                <ol class="breadcrumb">
                    <li><span class="glyphicon glyphicon-home"></span>&nbsp;<a href="${pageContext.request.contextPath}/main.jsp">主页</a></li>
                    <li class="active">${modeName }</li>
                </ol>
            </div>
            <jsp:include page="<%=mainPage %>"/>
        </div>
    </div>
    <div class="row">
        <div class="col-md-12">
            <jsp:include page="/common/foot.jsp"/>
        </div>
    </div>
</div>
</body>
</html>